<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/9/15
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/common.jsp"%>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        var setting = {
            data: {
                simpleData: {
                    enable: true
                }
            },
            check: {
                enable: true,
                autoCheckTrigger: true
            },
            async: {
                enable: true,
                url: "<%=path%>/menu/getInfoZtreeChecked/" + $("[name=rid]").val(),
            }
        };
        $(document).ready(function(){
            $.fn.zTree.init($("#treeDemo"), setting);
        });
    </script>
</head>
<body>
<form id="role_form">
   <input type="hidden" name="rid" value="${role.rid}">
   角色名称： <input type="text" name="rname" value="${role.rname}">
    <div class="zTreeDemoBackground left">
        <ul id="treeDemo" class="ztree"></ul>
    </div>
</form>
</body>
</html>
